package com.leyou.common.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * 分页响应pojo
 */
public class PageResult <T> implements Serializable {

    private static final long serialVersionUID = -7370447902033888393L;
    private Long total;  // 总条数
    private Integer totalPage;  // 总页数
    private List<T> items;  // 当前页数据

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getItems() {
        return items;
    }

    public void setItems(List<T> items) {
        this.items = items;
    }
}
